package com.tianjian.wordupload.utils;

import com.tianjian.wordupload.VO.ResultVO;

/**
 * @program: wordupload
 * @description: resultVoUtil
 * @author: Mr.Caogp
 * @create: 2018-10-06 16:39
 **/
public class ResultVOUtil {

    public static ResultVO success(Object object){

        ResultVO resultVO = new ResultVO();
        resultVO.setCode(200);
        resultVO.setMsg("上传成功");
        resultVO.setData(object);
        return resultVO;
    }

    public static ResultVO error(String msg){

        ResultVO resultVO = new ResultVO();
        resultVO.setCode(500);
        resultVO.setMsg(msg);
        return resultVO;
    }
}
